package com.pactera.asmp.server.dao;

import com.pactera.asmp.server.entity.ScriptGroupSearchDTO;
import com.pactera.asmp.server.pojo.ScriptGroupInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.dao
 * @ClassName: ScriptGroupMapper
 * @Description: ScriptGroupMapper
 * @Date 2020/07/14 17:12
 * @Author lvzhiqiang
 * @Version 1.0
 */
@Mapper
public interface ScriptGroupMapper {

    List<ScriptGroupInfo> select(@Param("scriptGroupSearchDTO") ScriptGroupSearchDTO scriptGroupSearchDTO);

    int insert(ScriptGroupInfo scriptGroupInfo);

    int update(ScriptGroupInfo scriptGroupInfo);

    int deleteByPrimaryKey(List<Integer> datas);

    int deleteGroupAndScriptRelByGID(@Param("groupIds") List<Integer> groupIds);

    int deleteInGroupThisScriptRel(@Param("groupId") Integer groupId, @Param("scriptIds") List<Integer> scriptIds);

}
